<template>
  <div class="page-home-banner">
    <div class="page-home-swiper-contain">
      <div class="block">
        <el-carousel
          trigger="click"
          height="600px"
          :loop="false"
          arrow="always"
        >
          <el-carousel-item
            class="textIntro"
            v-for="item in list"
            :key="item.id"
          >
            <!--   -->
            <div class="bannerText">
              <h3>{{ item.idH3 }}</h3>
              <p>{{ item.idP }}</p>
            </div>
            <div class="bannerImg"><img :src="item.idView" /></div>
          </el-carousel-item>
        </el-carousel>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  name: "HomeSwiper",
  props: {
    list: {
      type: Array,
      default: [],
    },
  },
};
</script>

<style lang="less" scoped>
.page-home-banner {
  width: 100%;
  height: 700px;
  background-color: #3880e7;
}
.page-home-swiper-contain {
  width: 1204px;
  height: 700px;
  margin: 0 auto;
  .textIntro {
    display: flex;
    margin: 0 auto;
    .bannerText {
      color: aliceblue;
      flex: 1;
      text-align: left;
      margin-top: 185px;
      font-weight: 500;
      h3 {
        font-size: 49px;
        line-height: 62px;
      }
      p {
        font-size: 21px;
        line-height: 32px;
      }
    }
    .bannerImg {
      width: 490px;
      margin-top: 35px;
      img {
        width: 490px;
        height: 420px;
      }
    }
  }

  :deep(.el-carousel__indicator--horizontal .el-carousel__button) {
    width: 15px;
    height: 15px;
    background: transparent;
    border: 1px solid #ffffff;
    border-radius: 50%;
    opacity: 0.5;
  }
  :deep(.el-carousel__indicator.is-active button) {
    width: 15px;
    height: 15px;
    background: #ffffff;
    border-radius: 50%;
    opacity: 1;
  }
}
</style>